"use client"
import { Button } from "antd"

export default function Error({error, reset}: {error: Error, reset: () => void}) {
    return (
        <div>
            {error.message}
            {error.name}
            <Button type="primary" onClick={() => reset()}>重試</Button>
        </div>
    )
}